

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/jquery-1.4.2.min.js"></script>
    <script src="./home/js/DatePicker/WdatePicker.js"></script>
    <script src="./home/js/FusionCharts.js"></script>
    <script src="./home/js/jQuery.etmTabs.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        $(function () {
            $("#tab").etmTabs({
                item: [
                { Url: '../CRM/SexRpt_1.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be', Selected: true, Text: "幼儿性别分布" },
                    { Url: '../CRM/ProvinceRpt_1.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be', Selected: false, Text: "户籍数据统计" },
                    { Url: '../CRM/CaddressRpt_1.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be', Selected: false, Text: "现住址数据统计" },
                    { Url: '../CRM/AgeRpt_1.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be', Selected: false, Text: "幼儿年龄分布" },
                    { Url: '../CRM/ParentRpt_1.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be', Selected: false, Text: "家庭收入情况" },
                ]
            });
            ClassYearshow();
            Change();
        });
    </script>
    <script type="text/javascript">
        function Change() {
            var dateTime = $("#ddlClassYear").val()
            $.AjaxETM("CRM_SexRpt_0_1", { "ClassYear": dateTime, "ClassGuid": $("#ddlClass").val(), "ApplyGradeGuid": $("#ddlApplyGrade").val(), "TermGuid": $("#ddlTerm").val() },
                        function (data) {
                            getdata(data);
                        },
                         true, "text");
            return false;
        }
        $(function () {
            $("#ddlClassYear").live("change", function () {
                addTerm();//查询学期
                addApplyGrades();//查询年级
                addApplyGrade(); //年级赋值班级
            });
        });

        //选择学年给 年级 班级 赋值
        function ClassYearshow() {
            if ($("#ddlClassYear").val() != "") {
                addTerm();//查询学期
                addApplyGrades();//查询年级
                addApplyGrade(); //年级赋值班级
            }
        }
        //添加学期
        function addTerm() {
            $.AjaxETM("CRM_addTerm", { "ClassYear": $("#ddlClassYear").val() },
                    function (data) {
                        if (data != '') {
                            $("#ddlTerm").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                            var jsonData = jQuery.parseJSON(data);
                            $.each(jsonData, function (i, n) {
                                $("#ddlTerm").append("<option value='" + n.TermGuid + "'>" + n.TermName + "</option>");
                            });
                        }
                        else {
                            $("#ddlTerm").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                        }
                    }, false, "text");
                }
                //查询年级
                function addApplyGrades() {
                    $.AjaxETM("CRM_ApplyGrade", { "ClassYear": $("#ddlClassYear").val() },
                             function (data) {
                                 if (data != '') {
                                     $("#ddlApplyGrade").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                                     var jsonData = jQuery.parseJSON(data);
                                     $.each(jsonData, function (i, n) {
                                         $("#ddlApplyGrade").append("<option value='" + n.GradeGuid + "'>" + n.GradeName + "</option>");
                                     });
                                 }
                                 else {
                                     $("#ddlApplyGrade").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                                 }
                             }, false, "text");
                         }
                         //选择年级 赋值班级
                         function addApplyGrade() {
                             var ApplyGrade = $("#ddlApplyGrade").val();
                             $.AjaxETM("CRM_addClass", { "ClassYear": $("#ddlClassYear").val(), "ApplyGrade": ApplyGrade },
                                                                      function (data) {
                                                                          if (data != '') {
                                                                              $("#ddlClass").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                                                                              var jsonData = jQuery.parseJSON(data);
                                                                              $.each(jsonData, function (i, n) {

                                                                                  $("#ddlClass").append("<option value='" + n.ClassGuid + "'>" + n.ClassName + "</option>");
                                                                              });
                                                                          }
                                                                          else {
                                                                              $("#ddlClass").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                                                                          }
                                                                      }, false, "text");
                                                                  }
    </script>
</head>
<body>
    <form method="post" action="SexRpt_1.aspx?navId=57ea5d3d-23ff-4fdd-b291-743a31fab3be&amp;memberType=1" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMjAwNDQ2MjI5OQ9kFgICAw9kFgICAQ8QZBAVDAnor7fpgInmi6kJMjAxMH4yMDExCTIwMTF+MjAxMgkyMDEyfjIwMTMJMjAxM34yMDE0CTIwMTR+MjAxNQkyMDE1fjIwMTYJMjAxNn4yMDE3CTIwMTd+MjAxOAkyMDE4fjIwMTkJMjAxOX4yMDIwCTIwMjB+MjAyMRUMJDAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMAkyMDEwfjIwMTEJMjAxMX4yMDEyCTIwMTJ+MjAxMwkyMDEzfjIwMTQJMjAxNH4yMDE1CTIwMTV+MjAxNgkyMDE2fjIwMTcJMjAxN34yMDE4CTIwMTh+MjAxOQkyMDE5fjIwMjAJMjAyMH4yMDIxFCsDDGdnZ2dnZ2dnZ2dnZ2RkZJyK8qnM++etzqEmyY8+kRcn3D97ffNhsiWrKD48bBIX" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="C6E6BE27" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAA45/4tniUUlVTQ7lAf2q3tR4Skt+1Vu4Y0RlOKT07lnOBJXeUGUoHdduc3nVleErZLHXwgETnyYEBZ7GWF2IFlfoHEFJu80LEVTCXhz5A5lB/DudOJsdowX9jF1xIHNQ2myU9iiMr7xVfCFzGRJlgj8iY+kQrR5Je9TqjmoZibO1YO5NbQGRMJvpPab1Gv2uSrYLREDZxW11AZyPZutEpk17lrwnBwY7sYvM668khMxJ6r2Gaq3DqCDr6ZuN/DScns9hLZSur2Ipi+vkcHXIeHVjtTdVzRZn7DFyWrI8V/OY7ILFDJzagmdsraCR+yfLIzZZT6xF1ENtTw1YQg3oGIs" />
</div>
        <div id="tab"></div>
        <table>
            <tr>
                <td class="textAlignRight" style="width: 54px;">学年：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <select name="ddlClassYear" id="ddlClassYear" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="2010~2011">2010~2011</option>
	<option value="2011~2012">2011~2012</option>
	<option value="2012~2013">2012~2013</option>
	<option value="2013~2014">2013~2014</option>
	<option value="2014~2015">2014~2015</option>
	<option value="2015~2016">2015~2016</option>
	<option selected="selected" value="2016~2017">2016~2017</option>
	<option value="2017~2018">2017~2018</option>
	<option value="2018~2019">2018~2019</option>
	<option value="2019~2020">2019~2020</option>
	<option value="2020~2021">2020~2021</option>

</select>
               
                </td>
                <td class="textAlignRight" style="width: 54px;">学期：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <select id="ddlTerm" name="ddlTerm" class="int">
                    </select>
                </td>
                <td rowspan="2" style="padding-left: 20px;">
                        <input type="submit" name="btnSearch" value="搜 索" onclick="return Change();" id="btnSearch" class="button" />
                </td>
            </tr>
            <tr>
                <td class="textAlignRight">年级：
                </td>
                <td class="borderRight">
                    <select id="ddlApplyGrade" name="ddlApplyGrade" onchange="addApplyGrade()" class="int">
                    </select>
                </td>
                <td class="textAlignRight">班级：
                </td>
                <td class="borderRight">
                    <select id="ddlClass" name="ddlClass" class="int">
                    </select>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td class="td_3">
                    <div id="chartdiv" align="center">
                     
                    </div>
                    <script type="text/javascript">
                        function getdata(fun) {
                            var chart = new FusionCharts("../../flash/Pie3D.swf", "ChartId", "100%", "552", "0", "0");

                            chart.setDataXML(fun);
                            chart.render("chartdiv");
                        }
                    </script>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
